﻿@using OBUCare.Web.Infrastructure
@using OBUCare.Web.Models;
@using OBUCare.Web.Infrastructure;
@using Telerik.Web.Mvc;
@*横向主菜单*@ @*<table width="100%" border="0" cellspacing="0" cellpadding="0" height="30">
        <tr> 
          <td class="txt14_24" background= "@Url.Content("~/Content/images/topgreen.gif")" ><b>　维修单管理　</b></td>
          <td width="1" class="txt14_24"><b><img src="images/topline.topline" width="1" height="30"></b></td>
          <td class="txt14_24"><b>　交接单管理　</b></td>
          <td width="1" class="txt14_24"><b><img src="images/topline.gif" width="1" height="30"></b></td>
          <td class="txt14_24"><b>　短信管理　</b></td>
          <td width="1" class="txt14_24"><b><img src="images/topline.gif" width="1" height="30"></b></td>
          <td class="txt14_24"><b>　元器件库存管理　</b></td>
          <td width="1" class="txt14_24"><b><img src="images/topline.gif" width="1" height="30"></b></td>
          <td class="txt14_24"><b>　业务流水管理　</b></td>
          <td width="1" class="txt14_24"><b><img src="images/topline.gif" width="1" height="30"></b></td>
          <td class="txt14_24"><b>　配置管理　</b></td>
          <td width="1" class="txt14_24"><b><img src="images/topline.gif" width="1" height="30"></b></td>
          <td class="txt14_24"><b>　维修报表　</b></td>
          <td width="1"><img src="@Url.Content("~/Content/images/topline.gif")"  width="1" height="30"></td>
        </tr>
</table>*@
<table cellpadding="0" cellspacing="0" border="0" height="30">
    @*<tr>
        <td><li><a href="/RepairOrders/" ><img src="@Url.Content("~/Content/images/topline.gif")" width="18" height="17" />维修单管理</a></li></td>
        <td><li><a href="/Transfer/" ><img src="@Url.Content("~/Content/images/topline.gif")" width="21" height="21" />交接单管理</a></li></td>      
        <td><li><a href="/Transaction/" ><img src="@Url.Content("~/Content/images/topline.gif")" width="22" height="21" />业务流水管理</a></li></td>
        <td><li><a href="/Admin/DictType/" ><img src="@Url.Content("~/Content/images/topline.gif")" width="22" height="21" />配置管理</a></li></td>
        <td><li><a href="/RepairOrders/" ><img src="@Url.Content("~/Content/images/topline.gif")" width="22" height="21" />维修报表</a></li></td>
    </tr>*@
    <tr valign="top" height="30">
        @{

            IEnumerable<ModuleFunctionViewModel> functions = UIUtility.getModulFunctionParent(UIUtility.GetCurrentUser());
        }
        @if (functions.Count() > 0)
        {
            foreach (var item in functions)
            {
            <td class="txt14_24"  height="30" >
                <b><a href="@item.ModuleURL">&nbsp;&nbsp;@item.ModuleMessage&nbsp;&nbsp;</a> </b>
               @* background="@Url.Content("~/Content/images/topgreen.gif")"*@
            </td>
            }
        }
@*  @if (UIUtility.CheckAccessRight("/RepairOrders/"))
        { 
            <td class="txt14_24" background="@Url.Content("~/Content/images/topgreen.gif")" height="30" >
                <b><a href="/RepairOrders/">&nbsp;&nbsp;维修单管理&nbsp;&nbsp;</a> </b>
            </td>
        }
        @if (UIUtility.CheckAccessRight("/Transfer/"))
        {
            <td width="1" class="txt14_24">
                <b>
                    <img src="@Url.Content("~/Content/images/topline.gif")" width="1" height="30"></b>
            </td> 
            <td class="txt14_24">
                <b><a href="/Transfer/">&nbsp;&nbsp;交接单管理&nbsp;&nbsp;</a> </b>
            </td>
        }
        @if (UIUtility.CheckAccessRight("/Transaction/"))
        { 
            <td width="1" class="txt14_24">
                <b>
                    <img src="@Url.Content("~/Content/images/topline.gif")" width="1" height="30"></b>
            </td>
            <td class="txt14_24">
                <b><a href="/Transaction/">&nbsp;&nbsp;业务流水管理&nbsp;&nbsp;</a> </b>
            </td>
        }
        @if (UIUtility.CheckAccessRight("/Admin/DictType/"))
        { 
            <td width="1" class="txt14_24">
                <b>
                    <img src="@Url.Content("~/Content/images/topline.gif")" width="1" height="30"></b>
            </td>
            <td class="txt14_24">
                <b><a href="/Admin/DictType/">&nbsp;&nbsp;配置管理&nbsp;&nbsp;</a></b>
            </td>
        }
        @if (UIUtility.CheckAccessRight("/Report/"))
        { 
            <td width="1" class="txt14_24">
                <b>
                    <img src="@Url.Content("~/Content/images/topline.gif")" width="1" height="30"></b>
            </td>
            <td class="txt14_24">
                <b><a href="/Report/">&nbsp;&nbsp;维修报表&nbsp;&nbsp;</a></b>
            </td>
        }*@
        <td width="1">
            <img src="@Url.Content("~/Content/images/topline.gif")" width="1" height="30">
        </td>
    </tr>
</table>
